package com.lywz.biz.common.entity.city;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.lywz.core.entity.AbstractEntity;
import com.lywz.core.entity.EntityAnnotation;

/**
 * TCityInfo entity.
 * 
 * @author xichao.zhou
 */
@NamedQueries(@NamedQuery(name = "city.queryCitys", query = "from CityInfo city order by city.cityId"))
@Entity
@Table(name = "T_City_Info")
@EntityAnnotation
public class CityInfo extends AbstractEntity {

    private static final long serialVersionUID = -1399730214351614212L;

    private Short id;

    private Short cityId;

    // 城市名称
    private String cityName;

    // 城市简介
    private String simpleDescription;

    // 城市概览
    private String overview;

    // 城市印象
    private String impression;

    // 贵州图片概述
    private String scenicDescription;

    // 城市美食介绍
    private String foodDescription;

    // 特产杂谈
    private String specialtyDescription;

    // 图片
    private String imageUrl;

    // Constructors

    /** default constructor */
    public CityInfo() {
    }

    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Short getId() {
        return this.id;
    }

    public void setId(Short id) {
        this.id = id;
    }

    @Column(name = "city_id", nullable = false)
    public Short getCityId() {
        return this.cityId;
    }

    public void setCityId(Short cityId) {
        this.cityId = cityId;
    }

    @Column(name = "city_name", nullable = false, length = 30)
    public String getCityName() {
        return this.cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    @Column(name = "simple_description", nullable = false, length = 65535)
    public String getSimpleDescription() {
        return this.simpleDescription;
    }

    public void setSimpleDescription(String simpleDescription) {
        this.simpleDescription = simpleDescription;
    }

    @Column(name = "overview", nullable = false, length = 65535)
    public String getOverview() {
        return this.overview;
    }

    public void setOverview(String overview) {
        this.overview = overview;
    }

    @Column(name = "impression", nullable = false, length = 65535)
    public String getImpression() {
        return this.impression;
    }

    public void setImpression(String impression) {
        this.impression = impression;
    }

    @Column(name = "scenic_description", nullable = false, length = 65535)
    public String getScenicDescription() {
        return this.scenicDescription;
    }

    public void setScenicDescription(String scenicDescription) {
        this.scenicDescription = scenicDescription;
    }

    @Column(name = "food_description", nullable = false, length = 65535)
    public String getFoodDescription() {
        return this.foodDescription;
    }

    public void setFoodDescription(String foodDescription) {
        this.foodDescription = foodDescription;
    }

    @Column(name = "specialty_description", nullable = false, length = 65535)
    public String getSpecialtyDescription() {
        return this.specialtyDescription;
    }

    public void setSpecialtyDescription(String specialtyDescription) {
        this.specialtyDescription = specialtyDescription;
    }

    @Column(name = "image_url", nullable = false, length = 100)
    public String getImageUrl() {
        return this.imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

}
